﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

namespace _132_将字典集合转换为字符串序列_LINQ语法
{
    class Program
    {
        static void Main(string[] args)
        {
            //实例化一个字典集合
            IDictionary<string, int> 字典 = new Dictionary<string, int>
            {
                ["item 1"] = 342,
                ["item 2"] = 700,
                ["item 3"] = 800
            };

            var 查询 = from p in 字典
                     select $"{p.Key}:{p.Value}";  //Key Valu是默认值？

            foreach (string i in 查询)
            {
                Console.WriteLine(i);
            }

        }
    }
}
